# -*- coding: utf-8 -*-
"""
@Time ： 2022/10/24 11:19
@Auth ： 司徒飞
@File ：util_config.py
@IDE ：PyCharm
"""

from ops.config.models import Basic


# class GetConfig(object):
#     def __init__(self):
#         pass
#
#     @staticmethod

def get_config(type):
    origin = Basic.objects.filter(type=type)
    conf = {}
    for k in origin:
        conf[k.name] = k.value
    return conf
